package com.shengyin.ec.service.goods;

import java.util.List;

import com.shengyin.ec.model.entity.Goods;

public interface GoodsService {
	
	public void createGoods(Goods goods);
	
	public void removeGoodsByID(long id);
	public void deleteSelectedGoods(String []ids);
	
	public List<Goods> getGoodsListBySelected(String []ids);
	
	public void modifyGoods(Goods goods);
	
	public Goods getGoodsById(long id);
	
	public List<Goods> getAllGoodsList();
	
	public List<Goods> getGoodsListByType(String typeName);
	
	public List<Goods> getAllGoodsList(int offset,int pagesize);
	
	public Long getTotal();
	
	public List<Goods> getGoodsList(int start,int end);
	
	public List<Goods> getGoodsListByKeyword(String keyword,int start,int end);
	
	public List<Goods> getGoodsListByKeyword(String prop,String keyword,int start,int end);
	
	public List<Goods> getGoodsListByType(String typename,int start,int end);
	
	//add by lcl 2012-3-17
	public Goods getGoodsByProductId(long productId);

	
	//add by wql 2012-3-25
	public List<Goods> checkGoodNameExist(String productName);
	
	
	public List<Goods> getGoodsList(long companyid,int offset, int pagesize);
	public void createGoods(Goods goods,long companyid);

	public List<Goods> getGoodsListByCondition(int type,String keyword,int offset,int pageSize);
	
	public List<Goods> getGoodsListByCondition(int type,String keyword);
	
	public void changeImage(Long id,String image);

}